<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.text.*"%>
<%@page import="java.util.*"%>
<%@page import="com.book.Dao.*"%>
<% 
response.setCharacterEncoding("utf-8");
String bookname=null;
String bookid=null;
String bookimg=null;
String bookprice=null;
String zuozhe=null;
String chubanshe=null;
String time=null;
String feileiid=null;

if(request.getParameter("bookname")!=null){
	bookname = new String(request.getParameter("bookname").getBytes("iso8859-1"),"utf-8"); 
}
SelectImg img=new SelectImg();
String newimg=img.findImg(bookname.trim());

if(request.getParameter("bookid")!=null){
	bookid = new String(request.getParameter("bookid").getBytes("iso8859-1"),"utf-8"); 
}

if(request.getParameter("bookprice")!=null){
	bookprice = new String(request.getParameter("bookprice").getBytes("iso8859-1"),"utf-8"); 
}
if(request.getParameter("zuozhe")!=null){
	zuozhe = new String(request.getParameter("zuozhe").getBytes("iso8859-1"),"utf-8"); 
}
if(request.getParameter("chubanshe")!=null){
	chubanshe = new String(request.getParameter("chubanshe").getBytes("iso8859-1"),"utf-8"); 
}
if(request.getParameter("time")!=null){
	time = new String(request.getParameter("time").getBytes("iso8859-1"),"utf-8"); 
}

if(request.getParameter("feileiid")!=null){
	feileiid = new String(request.getParameter("feileiid").getBytes("iso8859-1"),"utf-8"); 
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>图书详细</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="<c:url value='/qiantai/pager/pager.css'/>" />
    <script type="text/javascript" src="<c:url value='/qiantai/pager/pager.js'/>"></script>
	<script src="<c:url value='/jquery/jquery-1.5.1.js'/>"></script>
	
	<link rel="stylesheet" type="text/css" href="<c:url value='/bookcss/desc.css'/>">
	<script src="<c:url value='/qiantai/desc.js'/>"></script>
  </head>
  
  <body>
  <div class="divBookName"><%=bookname.trim()%></div>
  <div>
    <img align="top" src="<c:url value='<%=newimg%>'/>" class="img_image_w"/>
    <div class="divBookDesc">
	    <ul>
	    	<li>商品编号：<%=bookid%></li>
	    	<li>价格：<span class="price_n">&yen;<%=bookprice%></span></li>
	    	
	    </ul>
		<hr class="hr1"/>
		<table>
			<tr>
				<td colspan="3">
					作者：<%=zuozhe%> 著
				</td>
			</tr>
			<tr>
				<td colspan="3">
					出版社：<%=chubanshe%>
				</td>
			</tr>
			<tr>
				<td colspan="3">出版时间：<%=time%></td>
			</tr>
			
		</table>
		<div class="divForm">
			<form id="form1" action="<c:url value='/jsps/cart/list.jsp'/>" method="post">
				<input type="hidden" name="method" value=""/>
				<input type="hidden" name="bid" value=""/>
  				</form>
  			<a id="btn" href="GouWuCar.jsp?bookname=<%=bookname%>&bookid=<%=bookid%>&bookimg=<%=newimg%>&bookprice=<%=bookprice%>&zuozhe=<%=zuozhe%>&chubanshe=<%=chubanshe%>&time=<%=time%>" >
  				<image src="../images/shopping.png"></image>
  			</a>
  		</div>	
	</div>
  </div>
  </body>
</html>